﻿using System;
using System.Collections.Generic;

namespace Model
{
     ///<summary>
     ///实体类TABLE_UNION_ITEM
     ///</summary>
     public class TABLE_UNION_ITEM
     {
         private int __ID=0 ;
         private string __TABLE_NAME=string.Empty ;
         private string __TABLE_CONST=string.Empty ;
         private string __TABLE_FIELD=string.Empty ;
         private string __FIELD_ITEM=string.Empty ;
         private string __FIELD_ITEM_MT=string.Empty ;
         private string __FIELD_NAME=string.Empty ;
         private int? __IS_VALID=null ;
         private int? __JLBS=null ;
         private int? __JLBS_MT=null ;

         private Dictionary<string, bool> __Changed = new Dictionary<string, bool>();


         public TABLE_UNION_ITEM()
         {
             this.__Changed.Add("ID",false);
             this.__Changed.Add("TABLE_NAME",false);
             this.__Changed.Add("TABLE_CONST",false);
             this.__Changed.Add("TABLE_FIELD",false);
             this.__Changed.Add("FIELD_ITEM",false);
             this.__Changed.Add("FIELD_ITEM_MT",false);
             this.__Changed.Add("FIELD_NAME",false);
             this.__Changed.Add("IS_VALID",false);
             this.__Changed.Add("JLBS",false);
             this.__Changed.Add("JLBS_MT",false);
         }

         /// <summary>
         /// 将类重置到初始化状态
         /// </summary>
         public void Reset()
         {
             this.__ID =0;
             this.__TABLE_NAME =string.Empty;
             this.__TABLE_CONST =string.Empty;
             this.__TABLE_FIELD =string.Empty;
             this.__FIELD_ITEM =string.Empty;
             this.__FIELD_ITEM_MT =string.Empty;
             this.__FIELD_NAME =string.Empty;
             this.__IS_VALID =null;
             this.__JLBS =null;
             this.__JLBS_MT =null;
             this.__Changed["ID"] = false;
             this.__Changed["TABLE_NAME"] = false;
             this.__Changed["TABLE_CONST"] = false;
             this.__Changed["TABLE_FIELD"] = false;
             this.__Changed["FIELD_ITEM"] = false;
             this.__Changed["FIELD_ITEM_MT"] = false;
             this.__Changed["FIELD_NAME"] = false;
             this.__Changed["IS_VALID"] = false;
             this.__Changed["JLBS"] = false;
             this.__Changed["JLBS_MT"] = false;
         }

         /// <summary>
         /// 获取类中成员的改变状态
         /// </summary>
         public bool Changed(string strKey)
         {
             return __Changed[strKey];
         }

         /// <summary>
         ///设置或获取类中的[ID]的数据
         /// </summary>
         public int ID
         {
              set{ __ID = value; __Changed["ID"] = true;}
              get{return __ID;}
         }
         /// <summary>
         ///设置或获取类中的[TABLE_NAME]的数据
         /// </summary>
         public string TABLE_NAME
         {
              set{ __TABLE_NAME = value.Replace("'","’"); __Changed["TABLE_NAME"] = true;}
              get{return __TABLE_NAME;}
         }
         /// <summary>
         ///设置或获取类中的[TABLE_CONST]的数据
         /// </summary>
         public string TABLE_CONST
         {
              set{ __TABLE_CONST = value.Replace("'","’"); __Changed["TABLE_CONST"] = true;}
              get{return __TABLE_CONST;}
         }
         /// <summary>
         ///设置或获取类中的[TABLE_FIELD]的数据
         /// </summary>
         public string TABLE_FIELD
         {
              set{ __TABLE_FIELD = value.Replace("'","’"); __Changed["TABLE_FIELD"] = true;}
              get{return __TABLE_FIELD;}
         }
         /// <summary>
         ///设置或获取类中的[FIELD_ITEM]的数据
         /// </summary>
         public string FIELD_ITEM
         {
              set{ __FIELD_ITEM = value.Replace("'","’"); __Changed["FIELD_ITEM"] = true;}
              get{return __FIELD_ITEM;}
         }
         /// <summary>
         ///设置或获取类中的[FIELD_ITEM_MT]的数据
         /// </summary>
         public string FIELD_ITEM_MT
         {
              set{ __FIELD_ITEM_MT = value.Replace("'","’"); __Changed["FIELD_ITEM_MT"] = true;}
              get{return __FIELD_ITEM_MT;}
         }
         /// <summary>
         ///设置或获取类中的[FIELD_NAME]的数据
         /// </summary>
         public string FIELD_NAME
         {
              set{ __FIELD_NAME = value.Replace("'","’"); __Changed["FIELD_NAME"] = true;}
              get{return __FIELD_NAME;}
         }
         /// <summary>
         ///设置或获取类中的[IS_VALID]的数据
         /// </summary>
         public int? IS_VALID
         {
              set{ __IS_VALID = value; __Changed["IS_VALID"] = true;}
              get{return __IS_VALID;}
         }
         /// <summary>
         ///设置或获取类中的[JLBS]的数据
         /// </summary>
         public int? JLBS
         {
              set{ __JLBS = value; __Changed["JLBS"] = true;}
              get{return __JLBS;}
         }
         /// <summary>
         ///设置或获取类中的[JLBS_MT]的数据
         /// </summary>
         public int? JLBS_MT
         {
              set{ __JLBS_MT = value; __Changed["JLBS_MT"] = true;}
              get{return __JLBS_MT;}
         }
    }
}
